<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<IEnumerable<BookShop.Models.Book>>" %>
<table>
    <% foreach (var book in Model)
       { %>
    <tr>
        <td>
            <%= Html.ActionLink(book.BookName, "Details", new { id = book.BookID })%>
        </td>
        <td>
            <%= Html.Encode(String.Format("{0:F}", book.Price)) %>
        </td>
        <td>
        </td>
    </tr>
    <% } %>
</table>
